<template>
  <div class="page-title">
    <el-button
      class="back"
      icon="el-icon-back"
      circle
      @click="$router.go(-1)"
    ></el-button>
    <span>{{ title }}</span>
  </div>
</template>

<script>
export default {
  name: 'PageTitle',
  props: ['title']
}
</script>

<style lang="less" scoped>
.page-title {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  height: 50px;
  width: 100%;
  line-height: 50px;
  text-align: center;
  background: linear-gradient(135deg,#17ead9,#6078ea);
  // background-color: #b3def7;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 18px;
  .back {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translate(0, -50%);
  }
}
</style>
